<?php

header("content-type:text/html;chartset=utf-8");

include 'request.php';
	$xml_str ="xmlStr=<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
                <request>
					<method>reqStatusUpdate</method>
					<merchantId>1</merchantId>>
					<transactionId>2</transactionId>
					<status>3</status>
					<process_time>4</process_time>
					<mdp_transactionId>5</mdp_transactionId>
					<sign>6</sign>
                </request>";
       
	$xml_result = sendRequest('http://192.168.33.10/gmasiatech/apiTest/getRequest.php', $xml_str, "POST"); 
//        $xml_result = request('http://192.168.33.10/gmasiatech/apiTest/getRequest.php', $xml_str); 

        
        error_log(date("Y-m-d h:i:s")."=======================\r\n",    3,"../log/fund_tran.log");
        error_log("\t method: reqStatusUpdate \r\n",                    3,"../log/fund_tran.log");
        error_log("\t ex_merchant_id: ".$ex_merchant_id."\r\n",         3,"../log/fund_tran.log");
        error_log("\t transactionId: ".$extran_id."\r\n",               3,"../log/fund_tran.log");
        error_log("\t status: ".$status."\r\n",                         3,"../log/fund_tran.log");
        error_log("\t process_time: ".$today."\r\n",                    3,"../log/fund_tran.log");
        error_log("\t mdp_transactionId: ".$tran_id."\r\n",             3,"../log/fund_tran.log");
        error_log("\t sign: ".$encytem."\r\n",                          3,"../log/fund_tran.log");
        
        
        var_dump($xml_result);
